home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / wb613_01.zip / HELLO.C < prev    next >
C/C++ Source or Header  |  1991-03-15  |  715b  |  37 lines

  1. #include "winboss.h"
  2. main()
  3. {
  4. WINDOWPTR w1;                   /* window handle */
  5. int batrib;                     /* border atrib */
  6. int watrib;                     /* window atrib */
  7.  
  8. /* 
  9.  * Set attributes:
  10.  *
  11.  *      border - blue/white box
  12.  *      window - white background/black letters
  13.  *
  14. */
  15.  
  16.   batrib = v_setatr(BLUE,WHITE,0,0);
  17.   watrib = v_setatr(WHITE,BLACK,0,0);
  18.  
  19. /*
  20.  * Open window at 0,0 - 25 cells wide and 10 cells high
  21. */
  22.  
  23.   w1 = wn_open(0,0,0,25,10,watrib,batrib);
  24.   if(!w1) exit(1);
  25.  
  26. /*
  27.  * Print the famous string and wait for key to be struck.
  28.  * Close window on key strike.. exit.
  29. */
  30.  
  31.   wn_printf(w1,"Hello World...");
  32.   v_getch();
  33.   wn_close(w1);
  34. }
  35.  
  36. /* End */
  37.